package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品分类对象 pro_category
 *
 * @author zhonglin
 * @date 2020-04-28
 */
public class ProCategory
    extends TreeEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 分类id
   */
  private Long categoryId;

  /**
   * 分类名称
   */
  @Excel(name = "分类名称")
  private String categoryName;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /**
   * 删除标记（0代表存在 2代表删除）
   */
  private String delFlag;

  public void setCategoryId(Long categoryId) {

    this.categoryId = categoryId;
  }

  public Long getCategoryId() {

    return categoryId;
  }

  public void setCategoryName(String categoryName) {

    this.categoryName = categoryName;
  }

  public String getCategoryName() {

    return categoryName;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  public void setDelFlag(String delFlag) {

    this.delFlag = delFlag;
  }

  public String getDelFlag() {

    return delFlag;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("categoryId", getCategoryId())
                                                                    .append("categoryName", getCategoryName())
                                                                    .append("parentId", getParentId())
                                                                    .append("orderNum", getOrderNum())
                                                                    .append("status", getStatus())
                                                                    .append("delFlag", getDelFlag())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
